home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkNNNNLLLLSSSS((((3333xxxx)))) VVVVkkkkNNNNLLLLSSSS((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkNLS - Network Licensing support
-
-
-
-
- WWWWAAAARRRRNNNNIIIINNNNGGGG
- TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS IIIISSSS OOOOBBBBSSSSOOOOLLLLEEEETTTTEEEE.... IIIITTTT IIIISSSS RRRREEEETTTTAAAAIIIINNNNEEEEDDDD IIIINNNN VVVVIIIIEEEEWWWWKKKKIIIITTTT OOOONNNNLLLLYYYY FFFFOOOORRRR CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY
- PPPPUUUURRRRPPPPOOOOSSSSEEEESSSS.... PPPPLLLLEEEEAAAASSSSEEEE SSSSWWWWIIIITTTTCCCCHHHH TTTTOOOO UUUUSSSSIIIINNNNGGGG TTTTHHHHEEEE FFFFlllleeeexxxxLLLLMMMM LLLLIIIICCCCEEEENNNNSSSSIIIINNNNGGGG MMMMAAAANNNNAAAAGGGGEEEERRRR....
-
-
-
-
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkNLS.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkNLS(char* vendorID,
- long key,
- int productID,
- char* version,
- NLSCallback loseLicenseCallback = NULL,
- void *clientData=NULL);
-
- void ~VkNLS(void);
-
-
- XXXX RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD WWWWIIIITTTTHHHH TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- disableLicenseWarnings
- disableThirtyDayLicenseWarnings
- thirtyDayMessage
- sixtyDayMessage
- ninetyDayMessage
- notEnoughLicensesMessage
- noLicenseMessage
- licenseExpiredMessage
- warnLoseLicenseMessage
- regainLicenseMessage
-
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- VkNLS provides a high-level interface to the NetLS network licensing
- manager. The VkNLS class implements a policy based on the NetLS
- license mechanism that simplifies the process of license protecting
- applications. Applications merely instantiate an VkNLS object in
- their application, providing some basic information about the
- application and its licensing. The VkNLS object handles all license
- verification, informing the user if there is a problem, and shutting
- the application down if a license cannot be found.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkNNNNLLLLSSSS((((3333xxxx)))) VVVVkkkkNNNNLLLLSSSS((((3333xxxx))))
-
-
-
- VkNLS will look for either a node-locked or concurrent (networked)
- license. There is no difference to the application for these
- different types of licenses. Once the VKNLS object is instantiated,
- the object immediately checks for a valid license. If no license is
- found, the object posts a fatal error dialog, which the user must
- dismiss, exiting the application.
-
- If a license is obtained, the license is rechecked every ten
- minutes. If the application's license is lost, a warning dialog is
- posted warning that the license is no longer valid. This dialog is
- posted in blocking mode, so the user must dismiss it, however,the
- application will not exit. Instead, the object begins checking every
- minute for a license. If the license is restored, a dialog is posted
- notifying the user, and the program returns to normal operation. If
- the license is not found, another blocking dialog is posted every
- minute.
-
- The VkNLS class also supports warnings for users whose licenses are
- about to expire. By default, VkNLS will post a warning when a
- license has less than 90 days before expiration.
-
- RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS
- VkNLS recognizes several X resources that control the messages posted by
- the various dialogs. These are:
-
- ddddiiiissssaaaabbbblllleeeeLLLLiiiicccceeeennnnsssseeeeWWWWaaaarrrrnnnniiiinnnnggggssss
- If TRUE, don't show the warnings that appear when a license has only 90
- days before expiration. The default is FALSE. This resource does not
- disable messages when the license has less than 30 days before
- expiration.
-
- ddddiiiissssaaaabbbblllleeeeTTTThhhhiiiirrrrttttyyyyDDDDaaaayyyyLLLLiiiicccceeeennnnsssseeeeWWWWaaaarrrrnnnniiiinnnnggggssss
- If TRUE, don't show the warnings that appear when a license has only 30
- days before expiration. The default is FALSE.
-
- tttthhhhiiiirrrrttttyyyyDDDDaaaayyyyMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when only 30 days or less are left
- before a license expires. The message is expected to embed a "%d"
- printf-style integer spec in the message. VkNLS will plug the correct
- number of days into this slot. For example:
-
- *thirtyDayMessage: Your license will expire in %d days
-
-
- ssssiiiixxxxttttyyyyDDDDaaaayyyyMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when between 60 and 30 days are left
- before a license expires. The message is expected to embed a "%d"
- printf-style integer spec in the message. VkNLS will plug the correct
- number of days into this slot.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkNNNNLLLLSSSS((((3333xxxx)))) VVVVkkkkNNNNLLLLSSSS((((3333xxxx))))
-
-
-
- nnnniiiinnnneeeettttyyyyDDDDaaaayyyyMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when between 90 and 60 days are left
- before a license expires. The message is expected to embed a "%d"
- printf-style integer spec in the message. VkNLS will plug the correct
- number of days into this slot.
-
- nnnnoooottttEEEEnnnnoooouuuugggghhhhLLLLiiiicccceeeennnnsssseeeessssMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when an application is licensed, but
- there are not enough licenses currently available to support the number
- of people using them.
-
- nnnnooooLLLLiiiicccceeeennnnsssseeeeMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when no valid license can be found.
-
- lllliiiicccceeeennnnsssseeeeEEEExxxxppppiiiirrrreeeeddddMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when an application has had a valid
- license, but the license has now expired.
-
- wwwwaaaarrrrnnnnLLLLoooosssseeeeLLLLiiiicccceeeennnnsssseeeeMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when an application has lost its license
- while the application is running.
-
- rrrreeeeggggaaaaiiiinnnnLLLLiiiicccceeeennnnsssseeeeMMMMeeeessssssssaaaaggggeeee
- Determines the message to appear when an application that has lots its
- license has regained the license.
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- VVVVkkkkNNNNLLLLSSSS(((())))
- VkNLS(char* vendorID,
- long key,
- int productID,
- char* version,
- NLSCallback loseLicenseCallback = NULL,
- void *clientData=NULL);
-
-
- _v_e_n_d_o_r_I_D is an encrypted string that uniquely identifies a vendor.
- _k_e_y is an integral key. _p_r_o_d_u_c_t_I_D is an integer value that uniquely
- identifies a vendor's products. You must obtain these values from
- your NetLS administrator.
-
- _v_e_r_s_i_o_n specifies the version of the product. It can be any string
- that is meaningful to you.
-
- _l_o_s_e_L_i_c_e_n_s_e_C_a_l_l_b_a_c_k is an optional function pointer. The VkNLS
- object calls this function if it is unable to obtain a license. If
- you provide a _l_o_s_e_L_i_c_e_n_s_e_C_a_l_l_b_a_c_k function, VkNLS does not post the
- fatal error dialog and exit the application. It is up to the
- application to do any needed error recovery, and to then exit if
- appropriate.
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- VVVVkkkkNNNNLLLLSSSS((((3333xxxx)))) VVVVkkkkNNNNLLLLSSSS((((3333xxxx))))
-
-
-
- NNNNooootttteeee:::: _l_o_s_e_L_i_c_e_n_s_e_C_a_l_l_b_a_c_k must be either a global function or as
- static member function; it cannot be a regular member function.
-
- ~~~~VVVVkkkkNNNNLLLLSSSS(((())))
- void ~VkNLS(void);
-
-
- Free all storage associated with a VkNLS object and return any
- license currently in use.
-
- DDDDAAAATTTTAAAA MMMMEEEEMMMMBBBBEEEERRRR DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _N_e_t_L_S _M_a_n_u_a_l , _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-